﻿<html xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
  <head>
    <title>CopyDirectory Method (source, destination, pathToLog)</title>
    <link rel="stylesheet" type="text/css" href="../styles/presentation.css" />
    <link rel="stylesheet" type="text/css" href="ms-help://Hx/HxRuntime/HxLink.css" />
    <script type="text/javascript" src="../scripts/script_prototype.js"> </script>
    <script type="text/javascript" src="../scripts/EventUtilities.js"> </script>
    <script type="text/javascript" src="../scripts/StyleUtilities.js"> </script>
    <script type="text/javascript" src="../scripts/SplitScreen.js"> </script>
    <script type="text/javascript" src="../scripts/ElementCollection.js"> </script>
    <script type="text/javascript" src="../scripts/MemberFilter.js"> </script>
    <script type="text/javascript" src="../scripts/CollapsibleSection.js"> </script>
    <script type="text/javascript" src="../scripts/LanguageFilter.js"> </script>
    <script type="text/javascript" src="../scripts/CookieDataStore.js"> </script>
    <meta name="file" content="M_mcopy_Program_CopyDirectory" />
    <xml xmlns:msxsl="urn:schemas-microsoft-com:xslt">
      <MSHelp:Attr Name="AssetID" Value="M:mcopy.Program.CopyDirectory(System.IO.DirectoryInfo,System.IO.DirectoryInfo,System.String)" />
      <MSHelp:Keyword Index="A" Term="M:mcopy.Program.CopyDirectory(System.IO.DirectoryInfo,System.IO.DirectoryInfo,System.String)" />
      <MSHelp:Keyword Index="A" Term="frlrfmcopyProgramClassCopyDirectoryTopic" />
      <MSHelp:Keyword Index="K" Term="CopyDirectory method" />
      <MSHelp:Keyword Index="K" Term="Program.CopyDirectory method" />
      <MSHelp:Keyword Index="F" Term="CopyDirectory" />
      <MSHelp:Keyword Index="F" Term="Program.CopyDirectory" />
      <MSHelp:Keyword Index="F" Term="mcopy.Program.CopyDirectory" />
      <MSHelp:Attr Name="TopicType" Value="apiref" />
      <MSHelp:Attr Name="TopicType" Value="kbSyntax" />
      <MSHelp:Attr Name="APIType" Value="Managed" />
      <MSHelp:Attr Name="APILocation" Value="mcopy.dll" />
      <MSHelp:Attr Name="APIName" Value="mcopy..CopyDirectory" />
      <MSHelp:Attr Name="Locale" Value="en-us" />
      <MSHelp:Attr Name="Abstract" Value="CopyDirectory" />
    </xml>
  </head>
  <body>
    <div id="control">
      <span class="productTitle">A Sandcastle Documented MCOPY program</span>
      <br />
      <span class="topicTitle">CopyDirectory Method (source, destination, pathToLog)</span>
      <br />
      <div id="toolbar">
        <span id="chickenFeet">
          <mshelp:link keywords="R:Project" tabindex="0" xmlns:mshelp="http://msdn.microsoft.com/mshelp">mcopy</mshelp:link> ► <mshelp:link keywords="N:mcopy" tabindex="0" xmlns:mshelp="http://msdn.microsoft.com/mshelp">mcopy</mshelp:link> ► <mshelp:link keywords="T:mcopy.Program" tabindex="0" xmlns:mshelp="http://msdn.microsoft.com/mshelp">Program</mshelp:link> ► <span class="selflink">CopyDirectory(DirectoryInfo, DirectoryInfo, String)</span></span>
        <span id="languageFilter">
          <select id="languageSelector" onchange="var names = this.value.split(' '); toggleVisibleLanguage(names[1]); lfc.switchLanguage(names[0]); store.set('lang',this.value); store.save();" style="visibility: hidden;">
            <option value="CSharp cs">C#</option>
          </select>
        </span>
      </div>
    </div>
    <div id="main">
      <span style="color: DarkGray">documentation ver. 1.0.0.6 <p style="color: #dc143c; font-size: 8.5pt; font-weight: bold;">[This is preliminary documentation and is subject to change.]</p></span>
      <div class="summary">
            CopyDirectory
            </div>
      <div class="section">
        <div class="sectionTitle" onclick="toggleSection(this.parentNode)">
          <img src="../icons/collapse_all.gif" /> Declaration Syntax</div>
        <div class="sectionContent">
          <div id="syntaxSection">
            <table class="filter">
              <tr class="tabs" id="syntaxTabs">
                <td class="tab" x-lang="CSharp" onclick="toggleClass('syntaxTabs','x-lang','CSharp','activeTab','tab'); toggleStyle('syntaxBlocks','x-lang','CSharp','display','block','none');">C#</td>
              </tr>
            </table>
            <div id="syntaxBlocks">
              <div class="code" x-lang="CSharp">
                <pre>
                  <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="identifier">CopyDirectory</span>(
	<a href="http://msdn2.microsoft.com/en-us/library/8s2fzb02" target="_blank">DirectoryInfo</a> <span class="parameter">source</span>,
	<a href="http://msdn2.microsoft.com/en-us/library/8s2fzb02" target="_blank">DirectoryInfo</a> <span class="parameter">destination</span>,
	<a href="http://msdn2.microsoft.com/en-us/library/s1wwdcbf" target="_blank">string</a> <span class="parameter">pathToLog</span>
)</pre>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div id="parameters">
        <div class="section">
          <div class="sectionTitle" onclick="toggleSection(this.parentNode)">
            <img src="../icons/collapse_all.gif" /> Parameters</div>
          <div class="sectionContent">
            <dl paramName="source">
              <dt>
                <span class="parameter">source</span> (<a href="http://msdn2.microsoft.com/en-us/library/8s2fzb02" target="_blank">DirectoryInfo</a>)</dt>
              <dd>path to source folder</dd>
            </dl>
            <dl paramName="destination">
              <dt>
                <span class="parameter">destination</span> (<a href="http://msdn2.microsoft.com/en-us/library/8s2fzb02" target="_blank">DirectoryInfo</a>)</dt>
              <dd>path to destination folder</dd>
            </dl>
            <dl paramName="pathToLog">
              <dt>
                <span class="parameter">pathToLog</span> (<a href="http://msdn2.microsoft.com/en-us/library/s1wwdcbf" target="_blank">String</a>)</dt>
              <dd>path to log file</dd>
            </dl>
          </div>
        </div>
      </div>
      <div class="section">
        <div class="sectionTitle" onclick="toggleSection(this.parentNode)">
          <img src="../icons/collapse_all.gif" /> Remarks</div>
        <div class="sectionContent">
            function to copy folder
            </div>
      </div>
      <p>
        <div id="footer">documentation ver. 1.0.0.6<p />Send comments on this topic to
        <a id="HT_MailLink" href="mailto:marek.otulakowski%40gmail.com?Subject=A Sandcastle Documented MCOPY program">marek.otulakowski@gmail.com</a>
        <script type="text/javascript">
        var HT_mailLink = document.getElementById("HT_MailLink");
        var HT_mailLinkText = HT_mailLink.innerHTML;
        HT_mailLink.href += ": " + document.title;
        HT_mailLink.innerHTML = HT_mailLinkText;
        </script> <p /><a href="http://mcopy.codeplex.com" target="_blank">mcopy</a></div>Assembly: <span sdata="assembly">mcopy</span> (Module: mcopy) Version: 1.0.0.6 (1.0.0.6)</p>
    </div>
  </body>
</html>